package com.wuseguang.springcloud.dao.repository;

import com.wuseguang.springcloud.entity.RatingLimitsCustomized;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface RatingLimitsCustomizedRepository extends JpaRepository<RatingLimitsCustomized,Integer> {

    @Query(value = "select * from rating_limits_customized where  teacher_id = ?1" ,nativeQuery = true)
    RatingLimitsCustomized findByTeacherId(Integer teacherId);

    Integer deleteBySchoolId(Integer schoolId);
}
